package demo3;

public class Dog extends Animal implements IRunning,ISwimming{

    public Dog(int age, String name) {
        super(age, name);
    }

    @Override
    void eat() {
        System.out.println(name +"狗正在狗粮");
    }

    @Override
    public void Running() {
        System.out.println(name +"狗正在跑");
    }

    @Override
    public void Swimming() {
        System.out.println(name +"狗正在游泳");
    }
}
